package org.aeon.fasttasks.core.recorder;

import java.time.Instant;
import java.util.List;

/**
 * @author aeon
 * @createTime 2025/08/01  16:24
 * @description 日志记录实体类
 */
public class Record {

    private final List<String> contents;

    private final long timestamp;

    public Record(List<String> contents) {
        this.contents = contents;
        this.timestamp = Instant.now().toEpochMilli();
    }

    public List<String> getContents() {
        return contents;
    }

    public long getTimestamp() {
        return timestamp;
    }

    @Override
    public String toString() {
        return "LogRecord{" +
                "contents=" + contents +
                ", timestamp=" + timestamp +
                '}';
    }
}